import {
	Tools
} from 'weaver-mobile';

export const getAccount = (params = {}) => Tools.callApi({
	url: '/api/portal/account/getAccount',
	method: 'GET',
	params
});

export const getShowTypes = (params = {}) => Tools.callApi({
	url: '/api/hrm/othersetting/getBelongToForm',
	method: 'POST',
	params
});

export const saveShowType = (params = {}) => Tools.callApi({
	url: '/api/hrm/othersetting/saveBelongTo',
	method: 'POST',
	params
});

export const injectUserInfoToSession = (params = {}) => Tools.callApi({
	url: '/api/hrm/login/identityShift',
	method: 'POST',
	params
});